package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.beans.item.cinema;
import com.hdax.dm.mappers.cinemaMapper;
import com.hdax.dm.service.cinemaService;
import org.springframework.stereotype.Service;

@Service
public class cinemaServiceImpl extends ServiceImpl<cinemaMapper, cinema> implements cinemaService {
    @Override
    public cinema selectOne(Integer id) {
        QueryWrapper<cinema> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("id",id);
        cinema cinema = baseMapper.selectOne(queryWrapper);
        return cinema;
    }
}
